package test.dp.proxy.jdk;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class DynamicHandler implements InvocationHandler {

	private Object o;
	
	public DynamicHandler(Object o) {
		this.o = o;
	}
	
	
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		
		System.out.println("before --- request ");
		
		
		Object result = method.invoke(o, args);
		
		
		System.out.println("after --- request ");
		
		return null;
	}
}




